package com.lanou3g.code0411;

/**
 * If there are no bugs, it was created by Chen FengYao on 2018/4/11;
 * Otherwise, I don't know who created it either
 */

public class Test03 {
    public static void main(String[] args) {
        MyArray<String> stringMyArray = new MyArray<>();

        stringMyArray.put("Hello");
        stringMyArray.put("World");

        String a = stringMyArray.get(5);
        System.out.println(a);

        for (int i = 0; i < stringMyArray.size(); i++) {
            String s = stringMyArray.get(i);
            System.out.println(s);
        }




//        MyArray<Person> personMyArray
//                 = new MyArray<>();
//
//        Person p1 = new Person();
//        personMyArray.put(p1);




    }
}
